package com.fangzhi.mobel.vo;

import com.fangzhi.utils.GlobalParam;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.util.StringUtils;

import java.io.Serializable;

@Data
@Accessors(chain = true)
public class ReceiptListVo implements Serializable {
    private Long id;

    /**
     * 订单id
     */
    private String orderId;

    /**
     * 回执公司
     */
    private String receiptCompany;

    /**
     * 回执运费
     */
    private double receiptShippingFee;

    /**
     * 回执总金额
     */
    private double receiptTotalAmount;

    /**
     * 回执图
     */
    private String image;

    public ReceiptListVo setImage(String image) {
        if (StringUtils.hasText(image))
            this.image = GlobalParam.IMAGE_URL + image;
        return this;
    }
}
